<? $page_title='领料出库单列表' ?>
<?include "FASHION/page_header.phtml"?>
<script language="JavaScript" src="<?php echo $root; ?>/util/datepicker/WdatePicker.js"></script>

<form method="get">
	<?= htmlutil::makeTimesRangeBox() ?>
	&nbsp; 用户：<?= htmlutil::users_select('user_id', '') ?>
	&nbsp; <input type="submit" value="搜索" />
</form>

<table border="0" class="list"><tbody>
<tr class="nobg">
	<th>单号</th>
	<th>用户</th>
	<th>审批状态</th>
	<th>出库状态</th>
	<th>时间</th>
	<th width="60">操作</th>
</tr>
<{if $list}><?foreach($list as $d){?>
<tr>
	<td><?$d.sno?></td>
	<td><?$d.user_name?></td>
	<td><?= DemandHelper::flow2text($d.audit_flow) ?></td>
	<td><{if $d.audit_flow==1&&$d.effect==0}>
		可出库
		<{elseif $d.effect==1}>
		已出库
		<{else}>
		不可出库<{/if}>
	</td>
	<td class="nowrap"><?=date('Y/m/d H:i', $d.addtime)?></td>
	<td>
		<a href="<?url("outbound-view/id/".$d.id)?>"  title="查看">查看</a>
		<{if $d.audit_flow==1 && $d.effect==0}>
		<a href="<?url("outbound-pickout/id/".$d.id)?>"  title="领料出库">出库</a>
		<{/if}>
	</td>
</tr>
<? } ?><{/if}>
</tbody></table>

<?= Html::pager($pager) ?>

<?include "FASHION/page_footer.phtml"?>